import requests from "./request";
export const requestBanners = () => {
  return requests({
    url: '/banner?type=1'
  })
}
//推荐歌单
export const requestrecommentsonglist = () => {
  return requests({
    url: '/personalized?limit=6'
  })
}
//获取歌单详情
export const requestsonglistdeail = (id) => {
  return requests({
    url: `/playlist/detail?id=${id}`
  })
}
//获取歌词
export const requestLyric = (id) => {
  return requests({
    url: `/lyric?id=${id}`
  })
}
// 获得热搜歌曲
export const requestSerachHot = () => {
  return requests({
    url: '/search/hot/detail',

  })
}
// 搜索关键字
export const requestSerachWord = (word) => {
  return requests({
    url: `/search/?keywords=${word}`,

  })
}
export const songDetail = (id) => {
  return requests({
    url: `/song/detail?ids=${id}`
  })
}
// 获取mv
export const getMvSrc = (mvid) => {
  return requests({
    url: `/mv/url?id=${mvid}`
  })
}
// 获取mv详情
export const getMvDetail = (mvid) => {
  return requests({
    url: `/mv/detail?mvid=${mvid}`
  })
}
// 获取相似mv 
export const getSimilarMv = (mvid) => {
  return requests({
    url: `/simi/mv?mvid=${mvid}`
  })
}
// 获取mv评论
export const getMvComemnt = (mvid) => {
  return requests({
    url: `/comment/mv?id=${mvid}`
  })
}
// 获取推荐的歌
export const getNewRecomment = () => {
  return requests({
    url: '/top/song?type=7'
  })
}